import request from "@/utils/request";

// 查询固定抽样内容列表
export function fixedSampleList(params) {
  return request({
    url: "/qcmasterdata/fixedSample/list",
    method: "get",
    params,
  });
}
// 新增固定抽样内容
export function addfixedSample(data) {
  return request({
    url: "/qcmasterdata/fixedSample",
    method: "post",
    data,
  });
}
// 修改固定抽样内容
export function putfixedSampleList(data) {
  return request({
    url: "/qcmasterdata/fixedSample",
    method: "put",
    data,
  });
}
// 查询固定抽样内容详情
export function getInfo(id) {
  return request({
    url: `/qcmasterdata/fixedSample/getInfo/${id}`,
    method: "get",
  });
}
// 删除固定抽样内容
export function deletefixedSample(id) {
  return request({
    url: `/qcmasterdata/fixedSample/${id}`,
    method: "delete",
  });
}
